﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="F401_Thanh_vien_Vi_tri.aspx.cs" Inherits="DanhMuc_F401_Thanh_vien_Vi_tri" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style4
        {
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table cellspacing="0" cellpadding="2" style="width:100%;" class="cssTable" border="0">

<!-- Lọc thành viên vị trí -->
    <tr>
		<td class="cssPageTitleBG" colspan="6" >
		    <asp:label id="v_lbl_loc_tv_vt" runat="server" CssClass="cssPageTitle" Text="Lọc thành viên - vị trí" />
	    </td>
	</tr>
    <tr>
        <td align="left" colspan="6">
            <asp:label id="m_lbl_thong_bao" runat="server" CssClass="cssPageTitle" Text="Lọc thành viên - vị trí" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:label id="v_lbl_tu_khoa_tim_kiem" CssClass="cssManField" runat="server" Text="Từ khóa tìm kiếm" />
	    </td>
        <td class="style4"> &nbsp;<asp:TextBox ID="m_txt_tu_khoa" runat="server" Width="277px" CssClass="cssTextBox"></asp:TextBox></td>
        <td align="left" colspan="2">
             <asp:button id="v_btn_loc_du_lieu" CssClass="cssButton" runat="server" 
                 Width="98px" Text="Lọc dữ liệu" Height="22px" />
        </td>
        <td align="left">
             <asp:button id="m_btn_them_moi" CssClass="cssButton" runat="server" 
                 Width="98px" Text="Thêm mới" Height="22px" 
                 onclick="m_btn_them_moi_Click" />
        </td>
    </tr>
    <tr>
        <td align="center" colspan="4">
            <asp:label id="lbl_tu_khoa" CssClass="cssLabel" runat="server" 
            Text="(Từ khóa tìm kiếm: Tên thành viên, Vị trí, Level)"/>
        </td>
    </tr>
<!-- Thêm, cập nhật thành viên vị trí -->
	<tr>
		<td class="cssPageTitleBG" colspan="6" >
		    <asp:label id="lbl_tv_vi_tri" runat="server" CssClass="cssPageTitle" Text="Danh sách thành viên vị trí"/>
	    </td>
	</tr>
    <tr>
        <td align="right" class="style2">
		    <asp:label id="lbl_thanh_vien" CssClass="cssManField" runat="server" 
                    Text="Thành viên" Visible="false"/>
        </td>
        <td class="style4">
            <asp:DropDownList id="m_cbo_thanh_vien" runat="server" CssClass="cssDorpdownlist" Visible="false"  >
            </asp:DropDownList>
        </td>
         <td align="right" class="style2">
		    <asp:label id="lbl_vi_tri" CssClass="cssManField" runat="server" 
                    Text="Vị trí" Visible="false"/>
        </td>
        <td>
            <asp:DropDownList id="m_cbo_vi_tri" runat="server" 
                        CssClass="cssDorpdownlist" Visible="false" >
            </asp:DropDownList>
        </td>
        <td align="right" class="style2">
		    <asp:label id="lbl_level" CssClass="cssManField" runat="server" 
                    Text="Level" Visible="false"/>
        </td>
        <td align="left">
            <asp:DropDownList id="m_cbo_level" runat="server" 
                        CssClass="cssDorpdownlist" Visible="false"  >
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="6" align="center">
            <asp:button id="m_btn_them" accessKey="v" CssClass="cssButton" runat="server" Width="98px" Text="Thêm" Height="22px" Visible="false" />
            <asp:button id="m_btn_cap_nhat" accessKey="v" CssClass="cssButton" runat="server" Width="98px" Text="Cập nhật" Height="22px" Visible="false" />
        </td>
    </tr>
<!-- Lưới dữ liệu -->
     <tr>
		<td align="center" colspan="6" valign="top">
            <asp:GridView ID="m_grv_tv_vt" runat="server" AutoGenerateColumns="False" 
                Width="98%" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
                BorderWidth="1px" CellPadding="4">
                <Columns>
                    <asp:TemplateField HeaderText="STT">
                        <ItemTemplate><%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tên thành viên">
                        <ItemTemplate>
                            <%# mapping_ten_thanh_vien_by_id(Eval("ID_THANH_VIEN"))%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Vị trí">
                        <ItemTemplate>
                            <%# mapping_vi_tri_by_id(Eval("ID_VI_TRI_CONG_VIEC")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Level">
                        <ItemTemplate>
                            <%# mapping_level_by_id(Eval("ID_LEVEL")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa"></asp:TemplateField>
                    <asp:TemplateField HeaderText="Sửa"></asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
        </td>
    </tr>
</table>
</asp:Content>